<?php
namespace App\Http\Query;

use Illuminate\Support\Facades\DB;

/*
 * ログインユーザー情報
 */
class LoginQuery
{

    public function getUserInfoByLoginId($loginId)
    {
        $sql = 'select user_id, login_id, password, auth, user_name, corp_id from user_master where login_id = ? and delete_flg = 0';
        $param = [
            $loginId
        ];

        $users = DB::select($sql, $param);
        return $users;
    }
}
